package org.dreamfly.core.service.impl;

import java.util.List;

import org.dreamfly.core.bean.SzVideo;
import org.dreamfly.core.bean.SzVideoType;
import org.dreamfly.core.dao.VideoTypeDAO;
import org.dreamfly.core.service.VideoTypeService;

/**
 * Created by IntelliJ IDEA.
 * User: Gin
 * Date: 2010-10-10
 * Time: 0:55:11
 * To change this template use File | Settings | File Templates.
 */
public class VideoTypeServiceImpl implements VideoTypeService {
    private VideoTypeDAO videoTypeDAO;
    @Override
    public SzVideoType searchByName(String name) {
        return videoTypeDAO.searchByName(name);
    }
    
    public void setVideoTypeDAO(VideoTypeDAO videoTypeDAO) {
        this.videoTypeDAO = videoTypeDAO;
    }

	@Override
	public List<SzVideoType> findAll() {
		return videoTypeDAO.findAll(SzVideoType.class);
	}
}
